// app.js
//使用fp.add(x,y)和fp.map(f,x)创建一个能让functor里的值增加的函数ex1
const fp = require('lodash/fp')
const {Maybe,Container} = require('./03-code')
let maybe = Maybe.of([5,6,1])
let ex1 = () => {
  //需要实现的函数
  let functorAdd = fp.map(fp.add(1))
  let maybe2 = maybe
    .map(x=>functorAdd(x))
  console.log(maybe2)
}
ex1()